package com.dhcc.sds.ws.AddVteOrder;

public class AddVteOrderWebServiceSoapProxy implements com.dhcc.sds.ws.AddVteOrder.AddVteOrderWebServiceSoap {
  private String _endpoint = null;
  private com.dhcc.sds.ws.AddVteOrder.AddVteOrderWebServiceSoap addVteOrderWebServiceSoap = null;
  
  public AddVteOrderWebServiceSoapProxy() {
    _initAddVteOrderWebServiceSoapProxy();
  }
  
  public AddVteOrderWebServiceSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initAddVteOrderWebServiceSoapProxy();
  }
  
  private void _initAddVteOrderWebServiceSoapProxy() {
    try {
      addVteOrderWebServiceSoap = (new com.dhcc.sds.ws.AddVteOrder.AddVteOrderWebServiceLocator()).getAddVteOrderWebServiceSoap();
      if (addVteOrderWebServiceSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)addVteOrderWebServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)addVteOrderWebServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (addVteOrderWebServiceSoap != null)
      ((javax.xml.rpc.Stub)addVteOrderWebServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.dhcc.sds.ws.AddVteOrder.AddVteOrderWebServiceSoap getAddVteOrderWebServiceSoap() {
    if (addVteOrderWebServiceSoap == null)
      _initAddVteOrderWebServiceSoapProxy();
    return addVteOrderWebServiceSoap;
  }
  
  public String addVteOrder(String episodeID, String locDr, String userDr, String orderList) throws java.rmi.RemoteException{
    if (addVteOrderWebServiceSoap == null)
      _initAddVteOrderWebServiceSoapProxy();
    return addVteOrderWebServiceSoap.addVteOrder(episodeID, locDr, userDr, orderList);
  }
  
  
}